package cn.whao.guli.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * ClassName: GuliStockClient
 * Package: cn.whao.guli.order.client
 * Description:
 *
 * @Author 王豪
 * @Create 2024/11/28 9:41
 * @Version 1.0
 */
@FeignClient(value = "GULI-STOCK") // 获取注册中心服务 ip地址+端口号
public interface GuliStockClient {

    // 库存服务的接口地址
    @GetMapping("/stock/{productId}/{count}")
    public Boolean updateStock(@PathVariable("productId") String productId,
                               @PathVariable("count") Integer count);
}
